{extend name="base_mobile"/}
{block name="css"}
<link rel="stylesheet" href="__CSS__/fonts.css">
{/block}
{block name="body"}
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>参数设置</h1>
    <div id="hui-header-menu" onclick="hui.showSlideMenu();"></div>
</header>
<div class="hui-wrap">
    <div style="padding-top:5px;">
        <a href="{:url('user/config/add')}" class="hui-button hui-fl hui-danger" style="width:100%"><i class="fa fa-plus-square-o"></i> 新增参数</a>
    </div>
    <div class="hui-list" style="margin-top:18px;">
        {foreach name="list" item="v" empty="$empty"}
        <a href="javascript:hui.open('{:url('user/config/edit', ['id' => $v.id])}');">
            <div class="hui-list-icons">
                <img src="/static/hui/img/index/accordion.png" />
            </div>
            <div class="hui-list-text" style="font-weight: bold;">
                {$v.title}({$v.name})
                <div class="hui-list-info">
                    {:config('customer')[$v.group]}[{$v.group}]
                    <span class="hui-icons hui-icons-right"></span>
                </div>
            </div>
        </a>
        <a href="javascript:hui.open('{:url('user/config/edit', ['id' => $v.id])}');">
            <div style="font-size:13px;color:#898989;padding-left:20px;padding-top:5px;line-height: 22px;">
                {:config('configType')[$v.type]}[{$v.type}]
                <br>当前状态：{if $v.status eq 1}启用{else}禁用{/if}
            </div>
        </a>
        <div style="padding-top:5px;">
            <a href="{:url('user/config/edit', ['id' => $v.id])}" class="hui-button hui-button-small hui-fl" style="width:50%"><i class="fa fa-check-square-o"></i> 编辑</a>
            <a href="{:url('user/config/del', ['id' => $v.id])}" class="hui-button hui-button-small hui-fl ajax-delete" style="width:50%"><i class="fa fa-clock-o"></i> 删除</a>
        </div>
        {/foreach}
    </div>
    <div class="page" style="margin-bottom: 70px;">{$list->mobile_render()}</div>
</div>
{/block}
